import { createRouter, createWebHashHistory } from "vue-router";

let routes = [
  {
    path: "/login",
    name: "login",
    component: () => import("../pages/login/index.vue"),
  },

  // [

  // {
  //   path: "welcome",
  //   name: "welcome",
  //   component: () => import("../pages/home/welcome/index.vue"),
  // },

  //   {
  //     path: "studentManager",
  //     name: "studentManager",
  //     redirect: "/studentManager/stuProduct",
  //     component: () => import("../pages/studentManager/index.vue"),
  //     children: [
  //       {
  //         path: "stuProduct",
  //         name: "stuProduct",
  //         component: () => import("../pages/studentManager/stuProduct.vue"),
  //       },
  //       {
  //         path: "profill",
  //         name: "profill",
  //         component: () => import("../pages/studentManager/profill.vue"),
  //       },

  //       {
  //         path: "dormitory",
  //         name: "dormitory",
  //         component: () => import("../pages/studentManager/dormitory/index.vue"),
  //       },
  //     ],
  //   },
  //   {
  //     path: "attendance",
  //     name: "attendance",
  //     component: () => import("../pages/attendance/index.vue"),
  //   },
  // ],
];
const router = createRouter({
  history: createWebHashHistory("/base"),
  routes,
});
//3.导出路由
export default router;
